<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	request.setCharacterEncoding("UTF-8");
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML>
<html>
<head>
<base href="<%=basePath%>">

<title>联系人查询系统</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="联系人管理系统,">
<meta http-equiv="description" content="联系人管理系统">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="stylesheet"
	href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script language="JavaScript" src="js/Register.js"></script>

<link rel="stylesheet" href="css/form.css" />

<script type="text/javascript">
	
<%if ("false".equals(request.getAttribute("register"))) {%>
	alert("注册失败！用户名已存在！");
<%}%>
	
</script>
</head>

<body>
	<div class="container">
		<form class="form" id="form" name="form" action="registerCheck"
			method="POST">
			<h3>欢迎注册联系人查询系统：</h3>
			<br />
			<%
				if ("false".equals(request.getAttribute("register"))) {
			%>
			<h3>注册失败！用户名已存在！</h3>
			<%
				}
			%>
			<input type="text" class="form-control" id="username" name="username"
				placeholder="帐号" /> <input type="password" class="form-control"
				id="password" name="password" placeholder="密码" /> <input
				type="password" class="form-control" id="password1" name="password1"
				placeholder="重复密码" /> <input type="text" class="form-control"
				id="tel" name="tel" placeholder="电话" /> <input type="text"
				class="form-control" id="email" name="email" placeholder="Email" />
			<input class="btn btn-lg btn-primary btn-block" type="button"
				id="register" value="注册" onclick="reg()" /> <input type="button"
				class="btn btn-primary btn-lg btn-block"
				onclick="javascript:history.back(-1);" value="返回">
		</form>
	</div>
</body>
</html>
